***************************************************************
***************************************************************
REPLICATION FILES FOR THE PAPER
Pinotti, P. "Trust, Regulation, and Market Failures" Review of Economics and Statistics August 2012, Vol. 94, No. 3: 650�658.

TO REPLICATE ALL RESULTS IN THE PAPER SIMPLY COPY ALL FILES INTO A DIRECTORY "data_Pinotti_RESTAT2012" AND RUN tables_and_graphs.do USING STATA, VERSION 9.1 OR ABOVE



***************************************************************
LIST OF FILES:
***************************************************************

---------------------------------------------------------------
1. DATA

1a. xwvsevs_1981_2000_v20060423_wave4_vars_Pinotti_RESTAT2012.dta: exctract of the official WVS four-wave aggregate data file, version 20060423. The complete WVS archive can be obtained (upon registration) from "http://spitswww.uvt.nl/web/fsw/evs/datadownload/xwvsevs_1981_2000_v20060423_dta.zip". 
The version here is obtained by keeping only the 4th wave (s002==4) and the variables e042 a165 s024 x025r x047r x028 x035_2 x001 x003 s017

1b. individual_level_data.dta: generated from xwvsevs_1981_2000_v20060423_wave4_vars_Pinotti_RESTAT2012.dta using make_individual_level_data.do (see 2a.)

1c. popweights.dta: country populations in year 2000, used by make_individual_level_data.do to compute sampling weights

1d. crosscountry.dta: cross-country variables from Djankov et al. (2002) and World Bank's WDI

---------------------------------------------------------------
2. DO-FILES

2a. make_individual_level_data.do: generates individual_level_data.dta from xwvsevs_1981_2000_v20060423_wave4_vars_Pinotti_RESTAT2012.dta. The same file works on the original WVS four-wave aggregate data file, version 20060423, which can be obtained (upon registration) from "http://spitswww.uvt.nl/web/fsw/evs/datadownload/xwvsevs_1981_2000_v20060423_dta.zip". 

2b. tables_and_graphs.do: generates all tables anf figures in the paper using individual_level_data.dta


---------------------------------------------------------------
3. OUTPUTS

3a. results.log: output of tables_and_graphs.do

3b. figurebias.gph: stata graph of Figure 3 in the paper, produced by tables_and_graphs.do